#include <iostream>
#include <string>
#include <windows.h>
#include "Linifile.h"
using namespace std;

int main()
{
  //1.使用 ofstream 写文件
   SetConsoleOutputCP(CP_UTF8); 
   Linifile ini("system.ini");
   //ini.setinifile("system.ini");
   ini.writeini("mydateSet","db_name","192.168.10.1");
   ini.writeini("mydateSet","db_user","root***");
   ini.writeini("mydateSet","db_psd","123456abcd");
   ini.writeini("mydateSet","db_inf","张大锤");
   ini.writeini("mykeys","key","123456");
   ini.writeini("mykeys","key1","12qgf");
   std::cout<<ini.readini("mykeys","key1")<<std::endl;
   std::cout<<ini.readini("mykeys","key")<<std::endl;
      ini.writeini("mydateSet","db_psd","0000");
}

